Skip to content

Conversation

@lstein
Copy link
Owner

@lstein lstein commented Sep 23, 2025

This pull request refactors the release workflow to separate PyPI and DockerHub deployments into distinct GitHub Actions workflows. The PyPI deployment is now handled in its own workflow, while DockerHub deployment has been moved to a dedicated workflow that can be triggered independently or as part of a coordinated deploy. Additionally, the process for extracting the project version from pyproject.toml has been improved for better error handling.

CI/CD Workflow Refactoring:

  • Introduced a new .github/workflows/deploy.yml workflow to coordinate deployments to both PyPI and DockerHub, using workflow dispatch and reusable workflow calls.
  • Split DockerHub deployment into its own workflow file .github/workflows/dockerhub.yml, with improved steps for version extraction, Docker login, and image build/push.
  • Renamed .github/workflows/release.yml to .github/workflows/pypi.yml and updated it to handle only the PyPI deployment, removing all DockerHub-related steps. [1] [2]

Process Improvements:

  • Enhanced the version extraction command in both the PyPI and DockerHub workflows to provide error handling and clearer failure messages if the version cannot be read from pyproject.toml. [1] [2]

@lstein lstein merged commit 9da8d1c into master Sep 23, 2025
3 checks passed
@lstein lstein deleted the release/deploy-workflows branch September 23, 2025 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants